﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Base.Types;
using BusinessObjects.Base;

namespace BusinessObjects.Job {
    public class Job : BaseIdentifier {

        #region Construction

        public Job() { }

        #endregion

        #region Properties

        public Guid JobID {
            get;
            set;
        }

        public Int32 JobType {
            get;
            set;
        }

        public string JobTitle {
            get;
            set;
        }

        public string Durchführender1 {
            get;
            set;
        }

        public string Durchführender2 {
            get;
            set;
        }

        public string Einheit {
            get;
            set;
        }

        public string Fahrzeug {
            get;
            set;
        }

        public DateTime Datum {
            get;
            set;
        }

        public TimeObject StartTime {
            get;
            set;
        }

        public TimeObject EndTime {
            get;
            set;
        }

        public string Leistung {
            get;
            set;
        }

        public double LeistungProzent {
            get;
            set;
        }

        public double LeistungZeit {
            get;
            set;
        }

        public string ProjektName {
            get;
            set;
        }

        public int Status {
            get;
            set;
        }

        public double InternTime {
            get { return EndTime.value - StartTime.value; }
        }

        #endregion

    }
}
